package cn.yitun.chat.yitunservercommonlib.converter.po2vo.contact;


import cn.yitun.chat.yitunservercommonlib.dataentity.po.contact.ContactHarassSettingInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.contact.ContactHarassSettingVo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface ContactHarassSettingPo2VoConverter {

    ContactHarassSettingPo2VoConverter INSTANCE = Mappers.getMapper(ContactHarassSettingPo2VoConverter.class);

    ContactHarassSettingInfo vo2po(ContactHarassSettingVo vo);

    List<ContactHarassSettingInfo> vo2po(List<ContactHarassSettingVo> voList);

    @InheritInverseConfiguration
    ContactHarassSettingVo po2vo(ContactHarassSettingInfo dto);

    @InheritInverseConfiguration
    List<ContactHarassSettingVo> po2vo(List<ContactHarassSettingInfo> dtoList);
}
